package umls.interfaces.pubmed.server;

import java.util.LinkedList;
import java.util.List;

public class MetamapOutput {
	private List<PubMedAbstractMapped> abstrs;
	private String[] keys;

	public MetamapOutput() {
	}

	public MetamapOutput(List<PubMedAbstractMapped> s, String[] k) {
		abstrs = s;
		keys = k;
	}

	public void setAbstrs(List<PubMedAbstractMapped> abstrs) {
		this.abstrs = abstrs;
	}

	public List<PubMedAbstractMapped> getAbstrs() {
		return abstrs;
	}

	public void setKeys(String[] keys) {
		this.keys = keys;
	}

	public String[] getKeys() {
		return keys;
	}

	public MetamapOutput add(MetamapOutput metamap) {
		String[] arr = { keys[0], keys[1], metamap.getKeys()[1] };
		List<PubMedAbstractMapped> nuova = new LinkedList<PubMedAbstractMapped>();
		nuova.addAll(this.abstrs);
		nuova.addAll(metamap.getAbstrs());
		return new MetamapOutput(nuova, arr);
		// return null;
	}

}
